package 等待唤醒机制;

public class test {
    public static void main(String[] args) {
        Cook cook = new Cook();
        Foodie foodie = new Foodie();

        //给线程设置名称
        cook.setName("厨师");
        foodie.setName("吃货");

        //启动线程
        cook.start();
        foodie.start();
    }
}
